package test.cloud.pangui.core.mongo.tx;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.MongoDbFactory;
import org.springframework.data.mongodb.MongoTransactionManager;

/**
 * @Auther hepangui
 * @Date 2020/10/06 0001
*/
@Configuration
public class TxConfig {
	@Bean
	MongoTransactionManager transactionManager(MongoDbFactory factory){
		return new MongoTransactionManager(factory);
	}
}
